<HTML>
<HEAD>
<meta charset="UTF-8">
<title>BackgroundFilterVideoFrameProcessor - amazon-chime-sdk</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">amazon-chime-sdk</a>&nbsp;/&nbsp;<a href="../index.html">com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter</a>&nbsp;/&nbsp;<a href="./index.html">BackgroundFilterVideoFrameProcessor</a><br/>
<br/>
<h1>BackgroundFilterVideoFrameProcessor</h1>
<code><span class="keyword">class </span><span class="identifier">BackgroundFilterVideoFrameProcessor</span></code>
<p><a href="./index.html">BackgroundFilterVideoFrameProcessor</a> Draws frames to RGBA, converts to CPU, identifies the
foreground person and applies filter (blur or replacement) to a video frame.</p>
<h3>Parameters</h3>
<p><a name="logger"></a>
<code>logger</code> - : <a href="../../com.amazonaws.services.chime.sdk.meetings.utils.logger/-logger/index.html">Logger</a> - Logger to log the data.</p>
<p><a name="context"></a>
<code>context</code> - : <a href="https://developer.android.com/reference/android/content/Context.html">Context</a> - Context to create blur and segmentation processor.</p>
<p><a name="tag"></a>
<code>tag</code> - : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a> - Tag for logger.</p>
<h3>Constructors</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="-init-.html">&lt;init&gt;</a></h4>
</td>
<td>
<p><a href="./index.html">BackgroundFilterVideoFrameProcessor</a> Draws frames to RGBA, converts to CPU, identifies the
foreground person and applies filter (blur or replacement) to a video frame.</p>
<code><span class="identifier">BackgroundFilterVideoFrameProcessor</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$<init>(com.amazonaws.services.chime.sdk.meetings.utils.logger.Logger, android.content.Context, kotlin.String)/logger">logger</span><span class="symbol">:</span>&nbsp;<a href="../../com.amazonaws.services.chime.sdk.meetings.utils.logger/-logger/index.html"><span class="identifier">Logger</span></a><span class="symbol">, </span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$<init>(com.amazonaws.services.chime.sdk.meetings.utils.logger.Logger, android.content.Context, kotlin.String)/context">context</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/content/Context.html"><span class="identifier">Context</span></a><span class="symbol">, </span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$<init>(com.amazonaws.services.chime.sdk.meetings.utils.logger.Logger, android.content.Context, kotlin.String)/tag">tag</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span></code></td>
</tr>
</tbody>
</table>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="draw-image-with-mask.html">drawImageWithMask</a></h4>
</td>
<td>
<code><span class="keyword">fun </span><span class="identifier">drawImageWithMask</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$drawImageWithMask(android.graphics.Bitmap, android.graphics.Bitmap, android.graphics.Bitmap)/scaledInputBitmap">scaledInputBitmap</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/graphics/Bitmap.html"><span class="identifier">Bitmap</span></a><span class="symbol">, </span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$drawImageWithMask(android.graphics.Bitmap, android.graphics.Bitmap, android.graphics.Bitmap)/outputBitmap">outputBitmap</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/graphics/Bitmap.html"><span class="identifier">Bitmap</span></a><span class="symbol">?</span><span class="symbol">, </span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$drawImageWithMask(android.graphics.Bitmap, android.graphics.Bitmap, android.graphics.Bitmap)/filteredBitmap">filteredBitmap</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/graphics/Bitmap.html"><span class="identifier">Bitmap</span></a><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://developer.android.com/reference/android/graphics/Bitmap.html"><span class="identifier">Bitmap</span></a><span class="symbol">?</span></code></td>
</tr>
<tr>
<td>
<h4><a href="get-byte-buffer-from-input-video-frame.html">getByteBufferFromInputVideoFrame</a></h4>
</td>
<td>
<code><span class="keyword">fun </span><span class="identifier">getByteBufferFromInputVideoFrame</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$getByteBufferFromInputVideoFrame(com.amazonaws.services.chime.sdk.meetings.audiovideo.video.VideoFrame)/frame">frame</span><span class="symbol">:</span>&nbsp;<a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video/-video-frame/index.html"><span class="identifier">VideoFrame</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html"><span class="identifier">ByteBuffer</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="get-input-bitmap.html">getInputBitmap</a></h4>
</td>
<td>
<code><span class="keyword">fun </span><span class="identifier">getInputBitmap</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$getInputBitmap(com.amazonaws.services.chime.sdk.meetings.audiovideo.video.VideoFrame)/frame">frame</span><span class="symbol">:</span>&nbsp;<a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video/-video-frame/index.html"><span class="identifier">VideoFrame</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://developer.android.com/reference/android/graphics/Bitmap.html"><span class="identifier">Bitmap</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="get-processed-frame.html">getProcessedFrame</a></h4>
</td>
<td>
<code><span class="keyword">fun </span><span class="identifier">getProcessedFrame</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$getProcessedFrame(com.amazonaws.services.chime.sdk.meetings.audiovideo.video.VideoFrame, android.graphics.Bitmap, java.nio.ByteBuffer)/frame">frame</span><span class="symbol">:</span>&nbsp;<a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video/-video-frame/index.html"><span class="identifier">VideoFrame</span></a><span class="symbol">, </span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$getProcessedFrame(com.amazonaws.services.chime.sdk.meetings.audiovideo.video.VideoFrame, android.graphics.Bitmap, java.nio.ByteBuffer)/filteredBitmap">filteredBitmap</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/graphics/Bitmap.html"><span class="identifier">Bitmap</span></a><span class="symbol">?</span><span class="symbol">, </span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$getProcessedFrame(com.amazonaws.services.chime.sdk.meetings.audiovideo.video.VideoFrame, android.graphics.Bitmap, java.nio.ByteBuffer)/rgbaData">rgbaData</span><span class="symbol">:</span>&nbsp;<a href="https://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html"><span class="identifier">ByteBuffer</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video/-video-frame/index.html"><span class="identifier">VideoFrame</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="get-scaled-input-bitmap.html">getScaledInputBitmap</a></h4>
</td>
<td>
<p>Scales the input bitmap as per ML model specification.</p>
<code><span class="keyword">fun </span><span class="identifier">getScaledInputBitmap</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$getScaledInputBitmap(com.amazonaws.services.chime.sdk.meetings.audiovideo.video.VideoFrame, android.graphics.Bitmap)/frame">frame</span><span class="symbol">:</span>&nbsp;<a href="../../com.amazonaws.services.chime.sdk.meetings.audiovideo.video/-video-frame/index.html"><span class="identifier">VideoFrame</span></a><span class="symbol">, </span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$getScaledInputBitmap(com.amazonaws.services.chime.sdk.meetings.audiovideo.video.VideoFrame, android.graphics.Bitmap)/inputBitmap">inputBitmap</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/graphics/Bitmap.html"><span class="identifier">Bitmap</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://developer.android.com/reference/android/graphics/Bitmap.html"><span class="identifier">Bitmap</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="get-segmentation-mask.html">getSegmentationMask</a></h4>
</td>
<td>
<code><span class="keyword">fun </span><span class="identifier">getSegmentationMask</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.BackgroundFilterVideoFrameProcessor$getSegmentationMask(android.graphics.Bitmap)/scaledInputBitmap">scaledInputBitmap</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/graphics/Bitmap.html"><span class="identifier">Bitmap</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://developer.android.com/reference/android/graphics/Bitmap.html"><span class="identifier">Bitmap</span></a><span class="symbol">?</span></code></td>
</tr>
<tr>
<td>
<h4><a href="release.html">release</a></h4>
</td>
<td>
<code><span class="keyword">fun </span><span class="identifier">release</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
